package org.example.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpMaterialAttribute;
import org.example.domain.po.ErpUnit;
import org.example.service.ErpMaterialAttributeService;
import org.example.mapper.ErpMaterialAttributeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 24059
* @description 针对表【erp_material_attribute(产品属性表)】的数据库操作Service实现
* @createDate 2024-10-17 11:02:58
*/
@Service
public class ErpMaterialAttributeServiceImpl extends ServiceImpl<ErpMaterialAttributeMapper, ErpMaterialAttribute>
    implements ErpMaterialAttributeService{
    //分页查询
    public Page<ErpMaterialAttribute> findByPage(Page<ErpMaterialAttribute> page , @Param("attributeName") String attributeName,
                                                 @Param("tenantId") Long tenantId){
        return baseMapper.findByPage(page,attributeName,tenantId);
    }
    public List<ErpMaterialAttribute> selectByExample(Long tenantId){
        return this.baseMapper.selectByExample(tenantId);
    }
}




